package com.bcx.controller;

import com.bcx.pojo.Classes;
import com.bcx.service.ClassesService;
import com.bcx.tool.ResultEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class ClassesController {
    @Resource
    ClassesService classesService;
    @RequestMapping("/selectClasses")
    public ResultEntity<List<Classes>> getSortList(){
        List<Classes>sortList=classesService.selectAll();
        return ResultEntity.successWithoutData(sortList);
    }
}
